/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 *//*

package cz.worsik.android.test.rideshare.util.listener;

import android.view.View;
import cz.worsik.android.test.rideshare.MainActivity;
import cz.worsik.android.test.rideshare.constants.ViewConst;
import cz.worsik.android.test.rideshare.view.CellText;

public class CellOnClickListener implements View.OnClickListener
{
	MainActivity a;

	public CellOnClickListener(MainActivity a) {
		this.a = a;
	}
	
	public void onClick(View v)
	{
		CellText cell = (CellText) v;

		ViewConst.HISTORY_DRIVER = cell.getDriver();
		ViewConst.HISTORY_PASSENGER = cell.getPassenger();

		switch(cell.getType())
		{
			case JIZDY:
				if (ViewConst.HISTORY_JIZDY_VISIBLE) {
					a.generateBilanceHistory(cell.getType());
				}
				a.generateBilanceHistory(cell.getType());
				break;
				
			case PLATBY:
				if (ViewConst.HISTORY_PLATBY_VISIBLE) {
					a.generateBilanceHistory(cell.getType());
				}
				a.generateBilanceHistory(cell.getType());
				break;
		}
	}
}
*/
